package com.sinochem.yunlian.ship.common.enums;

import lombok.Getter;

/**
 * @Auther: zzd
 * @Dscription: 合作关系枚举
 * @Date: Create in 2017/11/20 17:08
 **/

public enum PartnerType {
     NOT_CP(0 , "非合作关系"),
     CP(1 , "合作关系"),
     OVER_CP(2, "已解除合作关系");

     @Getter
     private int typeCode;
     @Getter
     private String name;

     PartnerType(int typeCode, String name){
        this.typeCode = typeCode;
        this.name = name;
     }

     public static String valueOf (int typeCode) {
        switch (typeCode) {
            case 0:
                return NOT_CP.name;
            case 1:
                return CP.name;
            case 2:
                return OVER_CP.name;
        }
        return "";
     }


}
